{"ast":null,"code":"import confirm, { modalGlobalConfig, withConfirm, withError, withInfo, withSuccess, withWarn } from './confirm';\nimport destroyFns from './destroyFns';\nimport OriginModal from './Modal';\nimport PurePanel from './PurePanel';\nimport useModal from './useModal';\nfunction modalWarn(props) {\n  return confirm(withWarn(props));\n}\nconst Modal = OriginModal;\nModal.useModal = useModal;\nModal.info = function infoFn(props) {\n  return confirm(withInfo(props));\n};\nModal.success = function successFn(props) {\n  return confirm(withSuccess(props));\n};\nModal.error = function errorFn(props) {\n  return confirm(withError(props));\n};\nModal.warning = modalWarn;\nModal.warn = modalWarn;\nModal.confirm = function confirmFn(props) {\n  return confirm(withConfirm(props));\n};\nModal.destroyAll = function destroyAllFn() {\n  while (destroyFns.length) {\n    const close = destroyFns.pop();\n    if (close) {\n      close();\n    }\n  }\n};\nModal.config = modalGlobalConfig;\nModal._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;\nexport default Modal;","map":{"version":3,"names":["confirm","modalGlobalConfig","withConfirm","withError","withInfo","withSuccess","withWarn","destroyFns","OriginModal","PurePanel","useModal","modalWarn","props","Modal","info","infoFn","success","successFn","error","errorFn","warning","warn","confirmFn","destroyAll","destroyAllFn","length","close","pop","config","_InternalPanelDoNotUseOrYouWillBeFired"],"sources":["/data/messenger.client/node_modules/antd/es/modal/index.js"],"sourcesContent":["import confirm, { modalGlobalConfig, withConfirm, withError, withInfo, withSuccess, withWarn } from './confirm';\nimport destroyFns from './destroyFns';\nimport OriginModal from './Modal';\nimport PurePanel from './PurePanel';\nimport useModal from './useModal';\nfunction modalWarn(props) {\n  return confirm(withWarn(props));\n}\nconst Modal = OriginModal;\nModal.useModal = useModal;\nModal.info = function infoFn(props) {\n  return confirm(withInfo(props));\n};\nModal.success = function successFn(props) {\n  return confirm(withSuccess(props));\n};\nModal.error = function errorFn(props) {\n  return confirm(withError(props));\n};\nModal.warning = modalWarn;\nModal.warn = modalWarn;\nModal.confirm = function confirmFn(props) {\n  return confirm(withConfirm(props));\n};\nModal.destroyAll = function destroyAllFn() {\n  while (destroyFns.length) {\n    const close = destroyFns.pop();\n    if (close) {\n      close();\n    }\n  }\n};\nModal.config = modalGlobalConfig;\nModal._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;\nexport default Modal;"],"mappings":"AAAA,OAAOA,OAAO,IAAIC,iBAAiB,EAAEC,WAAW,EAAEC,SAAS,EAAEC,QAAQ,EAAEC,WAAW,EAAEC,QAAQ,QAAQ,WAAW;AAC/G,OAAOC,UAAU,MAAM,cAAc;AACrC,OAAOC,WAAW,MAAM,SAAS;AACjC,OAAOC,SAAS,MAAM,aAAa;AACnC,OAAOC,QAAQ,MAAM,YAAY;AACjC,SAASC,SAAS,CAACC,KAAK,EAAE;EACxB,OAAOZ,OAAO,CAACM,QAAQ,CAACM,KAAK,CAAC,CAAC;AACjC;AACA,MAAMC,KAAK,GAAGL,WAAW;AACzBK,KAAK,CAACH,QAAQ,GAAGA,QAAQ;AACzBG,KAAK,CAACC,IAAI,GAAG,SAASC,MAAM,CAACH,KAAK,EAAE;EAClC,OAAOZ,OAAO,CAACI,QAAQ,CAACQ,KAAK,CAAC,CAAC;AACjC,CAAC;AACDC,KAAK,CAACG,OAAO,GAAG,SAASC,SAAS,CAACL,KAAK,EAAE;EACxC,OAAOZ,OAAO,CAACK,WAAW,CAACO,KAAK,CAAC,CAAC;AACpC,CAAC;AACDC,KAAK,CAACK,KAAK,GAAG,SAASC,OAAO,CAACP,KAAK,EAAE;EACpC,OAAOZ,OAAO,CAACG,SAAS,CAACS,KAAK,CAAC,CAAC;AAClC,CAAC;AACDC,KAAK,CAACO,OAAO,GAAGT,SAAS;AACzBE,KAAK,CAACQ,IAAI,GAAGV,SAAS;AACtBE,KAAK,CAACb,OAAO,GAAG,SAASsB,SAAS,CAACV,KAAK,EAAE;EACxC,OAAOZ,OAAO,CAACE,WAAW,CAACU,KAAK,CAAC,CAAC;AACpC,CAAC;AACDC,KAAK,CAACU,UAAU,GAAG,SAASC,YAAY,GAAG;EACz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